#ifndef CUSTOMLABEL_H
#define CUSTOMLABEL_H


#include <QLabel>
#include <QMouseEvent>
#include <QDebug>

class CustomLabel : public QLabel {
    Q_OBJECT
public:
    explicit CustomLabel(QWidget *parent = nullptr);
    void setImageMsg(QPixmap pix);//将图片显示，如果图片过大，则缩小图片
    void setImage(QString iamgeName);
    QString image;
protected:
    void mouseDoubleClickEvent(QMouseEvent *event) override;
};

#endif // CUSTOMLABEL_H
